import request from "@/utils/request"

export enum LoginType {
  管理员登录 = 1,
  大客户登录 = 2,
}
export interface LoginParams {
  username: string
  password: string
  loginType: LoginType
}

export async function login(params: LoginParams) {
  return request<LoginResult>('/app/manager/login', {
    data: params,
  })
}
